package bancosys.tec.persist;

import jmine.tec.test.testcase.AuthBOBaseTestCase;
import bancosys.tec.persist.bussobj.AuthPersistableBusinessObject;
import bancosys.tec.persist.exception.PersistenceException;

/**
 * @created Jul 5, 2007
 * @author Gustavo Almeida
 */
public abstract class PersistAuthBOBaseTestCase<T extends AuthPersistableBusinessObject> extends AuthBOBaseTestCase<T> {

    /**
     * Construtor
     */
    public PersistAuthBOBaseTestCase() {
        super();
    }

    /**
     * Construtor.
     * 
     * @param name
     */
    public PersistAuthBOBaseTestCase(String name) {
        super(name);
    }

    /**
     * Devovle o nome do arquivo de config do spring.
     * 
     * @return o nome do arquivo de config do spring.
     */
    @Override
    protected final String getSpringMainXMLFilename() {
        return "jmine-tec-persist-test.xml";
    }

    @Override
    public String getControllerSpringId() {
        return "persistTestController";
    }

    @Override
    protected String[] getResourcesBaseReferencia() {
        return new String[]{};
    }

    @Override
    protected int getTestDataSize() {
        return 2;
    }

    @Override
    protected void initializeTestData() throws PersistenceException {
        // empty
    }
}
